package tech.wetech.admin.modules.system.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import tech.wetech.admin.modules.base.web.BaseCrudController;
import tech.wetech.admin.modules.system.po.UnionRefersVeinPayResult;
import tech.wetech.admin.modules.system.service.UnionRefersVeinPayResultService;

import java.util.List;

/**
 * @author lu
 * @description
 * @date 2019年11月05日 10:27
 */
@Controller
@RequestMapping("/refersvein")
public class UnionRefersVeinPayResultController extends BaseCrudController<UnionRefersVeinPayResult> {
    @Autowired
    private UnionRefersVeinPayResultService unionRefersVeinPayResultService;

    @GetMapping
    public String company(Model model) {
        List<UnionRefersVeinPayResult> list=unionRefersVeinPayResultService.queryAll();
        model.addAttribute("lists", list);
        return "system/refersvein";
    }
}
